import {request} from "@/utils/request";


export function getUserList(params){
    return request({
        url: '/user',
        params
    })
}

export function searchUser(data){
    return request({
        url: '/user/query',
        method: 'post',
        data
    })
}

export function addUser(data){
    return request({
        url: '/user',
        method: 'post',
        data
    })
}

export function putUser(id, data){
    return request({
        url: `/user/${id}`,
        method: 'put',
        data
    })
}

export function delUser(id){
    return request({
        url: `/user/${id}`,
        method: 'delete'
    })
}